<?php 
if(($adc->CurrentAd->getPartnerStatus() > 5) && ($adc->CurrentAd->getUserId() != $user->getId()))
{
	$adc->Pager->setItemsPerPage(4);
	if($adc->getUserAds($adc->CurrentAd->getUserId()))
	{
		if(count($adc->getUserAds($adc->CurrentAd->getUserId())) > 1)
		{
			?><br /><hr />
			<div class="prospect-list">
				<h3><?php echo ucfirst($txt->getWord('latest_ads').' '.$txt->getWord('from_this_user')); ?></h3>
				<?php
				$adc->setViewObject('Ad');
				$katana->setList('Ad');
				$i = 1;
				foreach($adc->getUserAds($adc->CurrentAd->getUserId()) as $ad)
				{
					if(($i < 4) && ($ad->getId() != $adc->CurrentAd->getId()))
					{
						if(is_file($adc->getViewPath().get_class($ad).'Item.php'))
						{ require($adc->getViewPath().get_class($ad).'Item.php'); }
						else
						{
							if(is_file($adc->getViewPath().'AdItem.php'))
							{ require($adc->getViewPath().'AdItem.php'); }
						}
						echo '<div class="clear"></div>';
						
						$katana->TrackViews['am_ads'][$ad->getId()]['table'] = 'am_ads';
						$katana->TrackViews['am_ads'][$ad->getId()]['where'] = 'id='.$ad->getId();
						$katana->TrackViews['am_ads'][$ad->getId()]['set'] = 'ViewsList=ViewsList+1';
						$i++;
					}
				}
				$adc->setViewObject('');
				$katana->setList('');
				?>
			</div><div class="clear"></div>
			<?php
		}
	}
}
?>